import Cookies from 'js-cookie';

//存储token
export function setToken(token) {
    //创建有效期为7天的cookie
    Cookies.set('hfbdqn', token, { expires: 7 });
}
//取token
export function getToken() {
    return Cookies.get('hfbdqn')
}
//移除token
export function removeToken() {
    Cookies.remove('hfbdqn');
}